Install Android Studio in Ubuntu
Install Android Studio in Ubuntu
A quick tutorial to get you started on building your Android app
In this piece, we’ll cover how to install Android Studio in Ubuntu system. Simply follow the steps below and start building your Android app!
Install JDK 6 or Later
Let’s get started by installing Oracle JDK 8 with the following commands:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-defaultTo confirm the installation was successful, open a terminal and type:
javac -versionSet the JAVA_HOME environment variable to the location of your JDK installation.
(http://www.wikihow.com/Set-Up-Your-Java_Home-Path-in-Ubuntu)
Download and Install Android Studio
Download the Android Studio package for Linux and extract it somewhere (e.g home directory).
To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute studio.sh.
cd android-studio/bin
./studio.shSelect whether you want to import your previous Android Studio settings or not, then click OK.
Set the ANDROID_HOME environment variable to the location of your Android SDK installation:
sudo gedit ~/.bashrcexport ANDROID_HOME=/home/user_directory/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
Install SDK Platforms
You need to install an SDK before you can jump into building Android apps.
Click on Configure -> SDK Manager to open Android SDK Manager.
Select the latest API in order to test against target build, e.g. API 19 (Android 4.4.2), and the Android Support Library and Android Support Repository packages in Extras. Then install the selected packages.
Comments
Post a Comment